package com.lyn.tencent_health_code.entity;

import com.alibaba.fastjson.JSON;

/**
 * @author almost
 */
public class HealthCodeResult {
    private CommonOut commonOut;
    private Rsp rsp;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }

    //<editor-fold defaultstate="collapsed" desc="delombok">
    @SuppressWarnings("all")
    public HealthCodeResult() {
    }

    @SuppressWarnings("all")
    public CommonOut getCommonOut() {
        return this.commonOut;
    }

    @SuppressWarnings("all")
    public Rsp getRsp() {
        return this.rsp;
    }

    @SuppressWarnings("all")
    public void setCommonOut(final CommonOut commonOut) {
        this.commonOut = commonOut;
    }

    @SuppressWarnings("all")
    public void setRsp(final Rsp rsp) {
        this.rsp = rsp;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof HealthCodeResult)) return false;
        final HealthCodeResult other = (HealthCodeResult) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$commonOut = this.getCommonOut();
        final Object other$commonOut = other.getCommonOut();
        if (this$commonOut == null ? other$commonOut != null : !this$commonOut.equals(other$commonOut)) return false;
        final Object this$rsp = this.getRsp();
        final Object other$rsp = other.getRsp();
        if (this$rsp == null ? other$rsp != null : !this$rsp.equals(other$rsp)) return false;
        return true;
    }

    @SuppressWarnings("all")
    protected boolean canEqual(final Object other) {
        return other instanceof HealthCodeResult;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $commonOut = this.getCommonOut();
        result = result * PRIME + ($commonOut == null ? 43 : $commonOut.hashCode());
        final Object $rsp = this.getRsp();
        result = result * PRIME + ($rsp == null ? 43 : $rsp.hashCode());
        return result;
    }
    //</editor-fold>
}
